package com.mall.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.PmsProduct;

import java.util.List;

/**
 * @author xyiaao
 * @description 针对表【pms_product(商品信息)】的数据库操作Api
 * @createDate 2022-03-29 19:46:09
 */
public interface PmsProductApi extends IService<PmsProduct> {

    List<PmsProduct> findByIds(List<Long> ids);

    List<PmsProduct> simpleList(String keywords);

    List<PmsProduct> findByIds(Long[] ids);

    Page<PmsProduct> findBySomewhere(Integer pageNum, Integer pageSize,
                                     Integer brandId, Integer productCategoryId,
                                     Integer publishStatus, Integer verifyStatus,
                                     String keyword, String productSn);

    PmsProduct findById(Integer id);

    List<PmsProduct> findByCategoryId(Integer productCategoryId);

}
